﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package Engine.Classes {
    import Engine.Managers.*;

    public class EngineObjectComponent {

        protected var m_owner:EngineObject = null;
        protected var m_name:String = null;

        public function initializeComponent():void{
        }
        public function get owner():EngineObject{
            return (this.m_owner);
        }
        public function set owner(_arg1:EngineObject):void{
            this.m_owner = _arg1;
        }
        public function get name():String{
            return (this.m_name);
        }
        public function register(_arg1:EngineObject):void{
            if (this.m_owner){
                ErrorManager.addError("Trying to register an already-registered component!");
            };
            this.m_owner = _arg1;
            this.onAdd();
        }
        public function unregister():void{
            if (!this.m_owner){
                ErrorManager.addError("Trying to unregister an unregistered component!");
            };
            this.onRemove();
            this.m_owner = null;
        }
        public function getSaveObject():Object{
            return (null);
        }
        public function loadObject(_arg1:Object):void{
        }
        protected function onAdd():void{
        }
        protected function onRemove():void{
        }

    }
}//package Engine.Classes 
